package com.sky.mapper;


import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//口味数据库操作

@Mapper
public interface DishFlavorMapper {

// 插入多条口味到数据库

    void insertBatch(List<DishFlavor> flavors);

//根据菜品Id查找口味

    List<DishFlavor> getByDishId(Long id);

// 删掉菜品的口味

    void deleteByDishId(Long id);
}
